package com.sky.service;

import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.ShoppingCart;

import java.util.List;

public interface ShoppingCartService {

    /**
     * 添加购物车
     * @param shoppingCartDTO
     */
    void addShoppingCar(ShoppingCartDTO shoppingCartDTO);

    /**
     * 显示购物车
     * @return
     */
    List<ShoppingCart> showShoppingCart();

    /**
     * 清空购物哈
     */
    void cleanShoppingCart();

    /**
     * 减购物车数量
     * @param shoppingCartDTO
     */
    void subShoppingCar(ShoppingCartDTO shoppingCartDTO);
}
